package de.gameduell.framework.modules.event {
	
	import de.gameduell.net.src.communication.ServerMessageEvent;
	
	/**
	 * chatted [player id] [text]
	 **/
	public class ChattedEvent extends NetworkEvent {

		public static const CHATTED_EVENT:String = "chatted";

		public var playerId:int;
		public var text:String;
		
		public function ChattedEvent(event:ServerMessageEvent) {
			super(CHATTED_EVENT);
			
			playerId = int(event.parameters[0]);
			text = event.parameters[1];
		}

	}
		 
	
}